package com.zzx.auth.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.experimental.Tolerate;

import javax.persistence.Id;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户角色实体
 */
@Data
@Builder
@TableName(value = "sys_user_role")
public class SysUserRole implements Serializable {

    /**
     * 角色ID
     */
    @Id
    private Long roleId;

    /**
     * 用户ID
     */
    private String userId;

    /**
     * 创建时间
     */
    private Date createTime;

    /** 更新时间 */
    @Transient
    private Date updateTime;


    @Tolerate
    public SysUserRole() {
    }
}
